﻿using Ny.Ci.Core.Mentions;
using Ny.Common;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Ny.Ci.Core.Suggestions
{
    public class SuggestionOperLog : MayBaseEntity
    {

        /// <summary>
        /// 处理动作
        /// </summary>
        public virtual MentionActionEnum Action { set; get; }
        /// <summary>
        /// 分数
        /// </summary>
        public virtual int? Score { set; get; }
        /// <summary>
        /// 处理意见
        /// </summary>
        public virtual string HandleOpinion { set; get; }
        /// <summary>
        /// 处理时间
        /// </summary>
        public virtual DateTime? HandleTime { set; get; }
        /// <summary>
        /// 接收时间
        /// </summary>
        public virtual DateTime ReceiveTime { set; get; }
        /// <summary>
        /// 是否职责内
        /// </summary>
        public virtual bool? IsInDuty { set; get; }
        /// <summary>
        /// 接收人id
        /// </summary>
        public virtual int HandleUserId { set; get; }
        /// <summary>
        /// 接收人
        /// </summary>
        public virtual string HandleUser { set; get; }
        /// <summary>
        /// 提案Id
        /// </summary>
        public virtual Guid SuggestionId { set; get; }
        [ForeignKey("SuggestionId")]
        public virtual Suggestion Suggestion { get; set; }
    }
}
